package com.anolesoft.twelvePlan.vo;

import com.anolesoft.twelvePlan.listener.LocalDateTimeDeSerializer;
import com.anolesoft.yr.demo.BaseQueryParamVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zyq
 * @date 2022/6/17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class MesPlanXiadaJixingVO extends BaseQueryParamVO implements Serializable {
    private static final long serialVersionUID = 3661449550175647678L;

    private String objuid;  //主键
    private String jixing;  //机型
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;   //创建时间
    private String nianyue;     //下达年月
    private String factoryId;   //厂代号
}
